import { Component, OnInit } from '@angular/core';
import { MenuItem } from 'primeng/primeng';

@Component({
  selector: 'test-primeng',
  templateUrl: './test-primeng.component.html',
  styleUrls: ['./test-primeng.component.scss']
})
export class TestPrimengComponent implements OnInit {
  public clicks = 0;
  public count(): void {
    this.clicks++;
  }
  constructor() { }
  private items: MenuItem[] = [];
  ngOnInit() {
      // this.items = [];
      this.items.push({label: 'Categories'});
      this.items.push({label: 'Sports'});
      this.items.push({label: 'Football'});
      this.items.push({label: 'Countries'});
      this.items.push({label: 'Spain'});
      this.items.push({label: 'F.C. Barcelona'});
      this.items.push({label: 'Squad'});
      this.items.push({label: 'Lionel Messi', url: 'https://en.wikipedia.org/wiki/Lionel_Messi'});
  }

}
